import java.io.IOException;
import java.io.PrintWriter;

@javax.servlet.annotation.WebServlet(urlPatterns = "/HelloServlet")
public class HelloServlet extends javax.servlet.http.HttpServlet {
    protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException {

        String isdn=request.getParameter("isdn");
        String name=request.getParameter("name");
        String author=request.getParameter("author");
        float price= Float.parseFloat(request.getParameter("price"));
        PrintWriter out=response.getWriter();
        out.println(isdn);
        out.println(name);
        out.println(author);
        out.println(price);
    }

    protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException {
        PrintWriter out=response.getWriter();
        out.println("From servlet!");
    }
}
